const moduleB = {
  state: {
    info: []
  },
  mutations: {
    GetInfo(state, value) {
      state.info = value;
    },
  },
  getters: {
    hign(state) {
      let extent = state.info.length;
      let count = 0;
      for (let i = 0; i < extent; i++) {
        let flag = state.info[i];
        flag = flag[1];
        if (flag >= 65) {
          count++;
        }
      }
      return count;
    },
    normal(state) {
      let extent = state.info.length;
      let count = 0;
      for (let i = 0; i < extent; i++) {
        let flag = state.info[i][1];
        if (flag < 65 && flag >= 40) {
          count++;
        }
      }
      return count;
    },
    low(state) {
      let extent = state.info.length;
      let count = 0;
      for (let i = 0; i < extent; i++) {
        let flag = state.info[i][1];
        if (flag < 40) {
          count++;
        }
      }
      return count;
    }
  }
};

export default moduleB;
